<?php

  /**
   * This class provides object to the Apache::LookupURI method.
   *
   * @version 1.0
   * @author Dany Mottier
   */
  class URIInformations extends Base {

    /** @var object The object containing all URI informations. */
    private $Informations = NULL;

    /**
     * Set all private variables.<br />
     * All values comes from $Informations.<br />
     * @param stdClass $Informations This parameter comes from a call to Apache::LookupURI()
     * @see Apache::LookupURI()
     */
    public function __construct($Informations) {
      $this->Informations = $Informations;
    }

    /**
     * Returns the number of bytes sent.<br />
     * @return integer The number of bytes sent.
     */
    public function getBytesSent() {
      return $this->Informations->bytes_sent;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function getCLength() {
      return $this->Informations->clength;
    }

    /**
     * Returns the mime type of the file.<br />
     * @return string The mime type of the file.
     */
    public function getContentType() {
      return $this->Informations->content_type;
    }

    /**
     * Returns the complete path to the file.<br />
     * @return string The complete path to the file.
     */
    public function getFileName() {
      return $this->Informations->filename;
    }

    /**
     * Returns the method to access the file.
     * @return string The method to access the file.
     */
    public function getMethod() {
      return $this->Informations->method;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function getMTime() {
      return $this->Informations->mtime;
    }

    /**
     * Returns the path informations.<br />
     * @return string The path informations.
     */
    public function getPathInfo() {
      return $this->Informations->path_info;
    }

    /**
     * Returns the request applied to the file.<br />
     * @return string The mathod applied to get informations on the file.
     */
    public function getRequest() {
      return $this->Informations->the_request;
    }

    /**
     * Returns the unix time at the end of the request.<br />
     * @return integer the unix time at the end of the file.
     */
    public function getRequestTime() {
      return $this->Informations->request_time;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function getSentBodyCT() {
      return $this->Informations->sent_bodyct;
    }

    /**
     * Returns the http status when reaching the file.
     * @return integer the http status when reaching the file.
     */
    public function getStatus() {
      return $this->Informations->status;
    }

    /**
     * Returns the unparsed uri.<br />
     * @return string The unparsed uri.
     */
    public function getUnparsedURI() {
      return $this->Informations->unparsed_uri;
    }

    /**
     * Returns the uri.<br />
     * @return string The uri.
     */
    public function getURI() {
      return $this->Informations->uri;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function hasCache() {
      return!$this->Informations->no_cache;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function hasLocalCopy() {
      return!$this->Informations->no_local_copy;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function isAllowed() {
      return $this->Informations->allowed;
    }

    /**
     * No documentation is provided.<br />
     * @return integer
     */
    public function isChunked() {
      return $this->Informations->chunked;
    }

  }

?>
